<!DOCTYPE html>
<html>
	<head>
		<meta charset="utf-8">
		<title></title>
		<style type="text/css">
			.box {
				margin: 100px auto;
				width: 300px;
				height: 300px;
				background-color: #ff6700;
				/* transform: rotate(0deg); */
				transition: 3s;
			}
			main {
				width: 100%;
				height: 100%;
				transform: perspective(600px);
			}
			main:hover  .box{
				transform:perspective(600px) rotate(340deg);
			}
		</style>
	</head>
	<body>
		
		<main>
			<div class="box"></div>
		</main>
	</body>
</html>
